<?php
include_once("Classes/MediaItemTemplateBase.php");

class MediaItemTemplateAudio extends MediaItemTemplateBase {
	public function replaceTemplateVariables($fileContents, $dataBean) {
		$fileContents = str_replace("{FORM_ID}",$dataBean->getId(),$fileContents);
		$fileContents = str_replace("{FORM_COLL_ID}",$dataBean->getCollId(),$fileContents);
		$fileContents = str_replace("{FORM_TITLE}",$dataBean->getTitle(),$fileContents);
		$fileContents = str_replace("{FORM_URL}",$dataBean->getUrl(),$fileContents);	
		$fileContents = str_replace("{FORM_SPEAKER}",$dataBean->getSpeaker(),$fileContents);
		$fileContents = str_replace("{FORM_DATE}",substr($dataBean->getPostedDate(),0,10),$fileContents);	
		return $fileContents;
	}
}
?>